package Others.DesignPattern.ObserverPattern.Original.Object;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ColleagueB {

    private String name;
    private Proscenium proscenium;

    public void update()
    {
        System.out.println(proscenium.getMessage() + name + " 关闭NBA比赛，继续工作！ ");
    }

}
